package com.heima.article.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

@Data
public class ArticleInfo {
    //文章id
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    //文章标题
    private String title;
    //点赞数
    private Integer likes;
    //收藏数
    private Integer collection;
    //评论数
    private Integer comment;
    //阅读数量
    private Integer views;
}
